<template>
  <div class="traditionalAndCovid">
    <div class="traditional">
      <div class="traditional-title" @click="goModule('/traditionalMedicalCare')">
        <span class="iconfont icon-traditional">&#xe7c3;</span>
        <span class="traditional-title-text">传统医学养生专栏</span>
      </div>
      <div class="traditional-content">
        <el-row :gutter="20">
          <el-col :span="12">
            <div class="grid-content traditional-module" @click="goModule('/traditionalMedicalCare/food')">
              <img src="@/assets/images/foodHealth.jpg" class="traditional-img" />
              <div><span class="traditional-module-name">食疗养生</span></div>
            </div>
          </el-col>
          <el-col :span="12">
            <div class="grid-content traditional-module" @click="goModule('/traditionalMedicalCare/moxibustion')">
              <img src="@/assets/images/moxibustion.jpg" class="traditional-img" />
              <div><span class="traditional-module-name">艾灸疗法</span></div>
            </div>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="12">
            <div class="grid-content traditional-module" @click="goModule('/traditionalMedicalCare/acupuncture')">
              <img src="@/assets/images/needle.jpg" class="traditional-img" />
              <div><span class="traditional-module-name">针灸疗法</span></div>
            </div>
          </el-col>
          <el-col :span="12">
            <div class="grid-content traditional-module" @click="goModule('/traditionalMedicalCare/massage')">
              <img src="@/assets/images/massage.jpg" class="traditional-img" />
              <div><span class="traditional-module-name">推拿法</span></div>
            </div>
          </el-col>
        </el-row>
      </div>
    </div>
    
  </div>
</template>

<script>
export default {
  name: "HomeTraditionalAndCovid",
  methods:{
    goModule(route){
      let link = this.$router.resolve({
        path: route,
      });
      window.open(link.href, "_blank");
    }
  }
};
</script>

<style scoped lang="less">
.el-row {
  margin-bottom: 20px;
  margin-top: 10px;
}
.el-col {
  border-radius: 4px;
}
.grid-content {
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
.traditionalAndCovid {
    border-left: 1px dashed #D7D7D7;
}
.traditional {
  margin-top: 10px;
  // border-bottom: 1px dashed #d7d7d7;
  .traditional-title {
    padding-bottom: 10px;
    font-size: 18px;
    .icon-traditional {
      color: @themeColor;
      font-size: 24px;
      vertical-align: bottom;
    }
    .traditional-title-text {
      cursor: pointer;
      &:hover {
        color: @themeColor;
      }
    }
  }
  .traditional-content {
    .traditional-module {
      cursor: pointer;
      .traditional-img {
        width: 160px;
        height: 90px;
      }
      .traditional-module-name {
        font-size: 16px;
        &:hover {
          color: @themeColor;
        }
      }
    }
  }
}
</style>